//
// Created by Administrator on 2023/8/8.
//
#include <string>
#include <iostream>
#include <unordered_set>
using namespace std;

class Solution {
public:
    int minimizedStringLength(string s) {
        unordered_set<char>set;
        for(auto &x:s){
            set.insert(x);
        }
        return set.size();
    }
};

int main() {
    Solution solution;
    string s = "aaabc";
    int result = solution.minimizedStringLength(s);
    cout << result << endl;
    return 0;
}